@extends('store::modal')
@section('title',$page_title)
@section('content')
    <div class="row">
        <div class="col-12">
            @if($info)
                @component('store::component.form.form')
                    @slot('formId') deliver  @endslot
                    @slot('action') {{route('Store_Order_updateDeliver',['order_id'=>$info->order_id])}} @endslot

                    @component('store::component.form.form-group')
                        @slot('title') 收货人 @endslot
                        @component('store::component.form.input')
                            @slot('name') consignee @endslot
                            @slot('value') {{$info->consignee}} @endslot
                        @endcomponent
                    @endcomponent

                    @component('store::component.form.form-group')
                        @slot('title') 联系方式 @endslot
                        @component('store::component.form.input')
                            @slot('name') phone @endslot
                            @slot('value') {{$info->phone}} @endslot
                        @endcomponent
                    @endcomponent
                    @component('store::component.form.form-group')
                        @slot('title') 邮编 @endslot
                        @component('store::component.form.input')
                            @slot('name') zip_code @endslot
                            @slot('value') {{$info->zip_code}} @endslot
                        @endcomponent
                    @endcomponent

                  {{--  @component('store::component.form.form-group')
                        @slot('title') 地区 @endslot
                        <div class="layui-form layui-form-pane">
                             <div class="layui-form-item post-area" lay-filter="post-area"></div>
                            <input type="hidden" id="post-area" name="area" value="">
                        </div>
                    @endcomponent--}}

                    @component('store::component.form.form-group')
                        @slot('title') 地址 @endslot
                        @component('store::component.form.textarea')
                            @slot('name') post_address @endslot
                            @slot('value') {{$info->post_address}} @endslot
                        @endcomponent
                    @endcomponent

                    @component('store::component.form.form-group')
                        @slot('class') text-left m-b-0 @endslot
                        @component('store::component.form.button')
                            @slot('title')确定@endslot
                            @slot('size') md @endslot
                            @slot('color') danger @endslot
                            @slot('params') {"formId":"#deliver"} @endslot
                            @slot('class')ajax-form @endslot
                        @endcomponent
                    @endcomponent
                @endcomponent
            @endif
        </div>
    </div>
@endsection
@push('styles')
   {{-- <link href="{{asset(config('store.plugin').'/layui/layui_ext/city-picker/interact.css')}}" rel="stylesheet">--}}
@endpush
@push('scripts')
    <script type="text/javascript">
       /* layui.use(['interact'], function(){
            $.get("{{route('Store_getArea')}}",function (response) {
                var interact = layui.interact;
                interact.render({
                    elem : '.post-area',
                    data : response,
                    name : 'area',
                    hint : ['请选择省份','请选择城市','请选择县/区'],
                });
                interact.on('interact(post-area)',function(data){
                    console.log(data);
                })
            });

        });*/
    </script>
@endpush